package org.hotswap.agent.watch.remote;

import java.util.Base64;

/**
 * @author luzhiqing
 * @version 1.0
 * @date 2022/11/10
 */
public class Base64Util {
    static final Base64.Decoder decoder = Base64.getDecoder();
    static final Base64.Encoder encoder = Base64.getEncoder();

    public static byte[] decode(String in) {
        return decoder.decode(in);
    }

    public static String encode(byte[] in) {
        return encoder.encodeToString(in);
    }
}
